package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {
    //基于xml--foreach标签
    void insertBatch(List<OrderDetail> orderDetailList);



    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> selectByOrderId(Long orderId);

    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getByOrderId(@Param("id") Long id);

    String selectByOrderResSrting(@Param("id") Long id);
}
